export default {
  nickname: [{ required: true, message: "单位名称不能为空", trigger: "blur" }],
  mobile: [
    { required: true, message: "手机不能为空", trigger: "blur" },
    {
      pattern: /^((0\d{2,3}-\d{7,8})|(1[23567894]\d{9}))$/,
      message: "请输入正确手机",
      trigger: "blur"
    }
  ],
  password: [
    { required: true, message: "密码不能为空", trigger: "blur" },
    { min: 6, message: "密码为6位以上", trigger: "blur" }
  ],
  code: [{ required: true, message: "用户编码不能为空", trigger: "blur" }],
  region_id: [{ required: true, message: "区域不能为空", trigger: "blur" }],
  name: [{ required: true, message: "联系人不能为空", trigger: "blur" }],
  address: [{ required: true, message: "地址不能为空", trigger: "blur" }],
  overdue_days: [
    { required: true, message: "账期周期不能为空", trigger: "blur" }
  ],
  warn_days: [{ required: true, message: "账期预警不能为空", trigger: "blur" }],
  credit: [{ required: true, message: "信用金不能为空", trigger: "blur" }],
  type: [{ required: true, message: "抬头类型不能为空", trigger: "blur" }],
  title: [{ required: true, message: "抬头不能为空", trigger: "blur" }],
  tax_code: [{ required: true, message: "税号不能为空", trigger: "blur" }],
  // bank: [{ required: true, message: "开户银行不能为空", trigger: "blur" }],
  // bank_account: [
  //   { required: true, message: "银行账号不能为空", trigger: "blur" }
  // ],
  delivery_fee: [
    {
      pattern: /^(\d+\.?)?\d{0,2}$/,
      message: "请输入整数和小数",
      trigger: "blur"
    }
  ],

  labelname: [{ required: true, message: "不能为空", trigger: "blur" }]
};
